package com.siashan.toolkit.oss.aliyun;

import com.siashan.toolkit.oss.aliyun.core.AliyunOssConfig;
import lombok.Data;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.regex.Pattern;

/**
 * 阿里云oss配置信息
 *
 * @author sias_han
 * @since v1.0.1
 */
@Data
@ConfigurationProperties(prefix = AliyunOssProperties.PREFIX)
public class AliyunOssProperties {

    private static final Logger log = LoggerFactory.getLogger(AliyunOssProperties.class);

    /**
     * Prefix of {@link AliyunOssProperties}.
     */
    public static final String PREFIX = "siashan.oss.aliyun";

    private static final Pattern PATTERN = Pattern.compile("-(\\w)");

    /**
     * 阿里云oss配置
     */
    private AliyunOssConfig config;

}
